package cc.decat.escript.ir.statement;

import cc.decat.escript.ir.Node;
import cc.decat.escript.ir.Visitor;

import java.util.List;

public class IfStatement extends Statement {
    private List<Node> condExpr;
    private List<Node> thenBody;
    private Node elseBody;

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public List<Node> getCondExpr() {
        return condExpr;
    }

    public void setCondExpr(List<Node> condExpr) {
        this.condExpr = condExpr;
    }

    public List<Node> getThenBody() {
        return thenBody;
    }

    public void setThenBody(List<Node> thenBody) {
        this.thenBody = thenBody;
    }

    public Node getElseBody() {
        return elseBody;
    }

    public void setElseBody(Node elseBody) {
        this.elseBody = elseBody;
    }
}
